<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<fmt:setBundle basename="Messages" />
<title><fmt:message key="titlebd" /></title>
<link rel="stylesheet" href="jquery.treeview.css" />
<link rel="stylesheet" href="screen.css" />

<script src="lib/jquery.js" type="text/javascript"></script>
<script src="lib/jquery.cookie.js" type="text/javascript"></script>
<script src="jquery.treeview.js" type="text/javascript"></script>

<script type="text/javascript" src="demo.js"></script>
<script>
	<script src="http://code.jquery.com/jquery-latest.js">
</script>
<script type="text/javascript"
	src="http://jzaefferer.github.com/jquery-validation/jquery.validate.js"></script>

</head>

<body>
	<img src="img/logo_ISS.jpg" class="logo" />
	<div class="header">
		<div style="float: left; margin: 11px auto 0 auto">
			<h1>
				<fmt:message key="Display.InstituteofSystemScience" />
			</h1>
		</div>
		<div style="float: right; margin: 11px auto 0 auto">
			<h1>
				<fmt:message key="Display.FacilitiesBookingSystem" />
			</h1>
		</div>
	</div>
	<div class="site_content">
		<div class="sidebar_container">
			<div class="sidebar">

			<c:choose>
					<c:when test="${sessionScope.Role=='Manager'}">
							<%@include file="managerSideMenu.jsp" %>
					</c:when>
					<c:when test="${sessionScope.Role=='Staff'}">
						
						<%@include file="staffSideMenu.jsp" %>
					</c:when>
				</c:choose>
			</div>
		</div>

		<div class="content">

					<form action="/demo/process" method=post class="cmxform" id="commentForm">
					<center>
						<table>

							<tr>
								<td><fmt:message key="label.bd.name" /></td>
								<td><c:if test="${param['update']}">
										<input type="text" name="name"
											value="${param['facilityname']}" size=15 maxlength=20
											readonly="readonly" >
										<input type="hidden" name="ins" value="false" />
									</c:if></td>
							</tr>

							<tr>
								<td><fmt:message key="label.bd.staffid" /></td>
								<td><input type="text" name="staffid"
									value="${param['staffID']}" size=15 maxlength=20 ></td>
							</tr>

							<tr>
								<td><fmt:message key="label.bd.status" /></td>
								<td><input type="text" name="status"
									value="${param['status']}" size=15 maxlength=20 ></td>
							</tr>

							<tr>
								<td><fmt:message key="label.bd.fromdate" /></td>
								<td><input type="text" name="fromdate"
									value="${param['fromdate']}" size=15 maxlength=20 ></td>
							</tr>

							<tr>
								<td><fmt:message key="label.bd.todate" /></td>
								<td><input type="text" name="todate"
									value="${param['todate']}" size=15 maxlength=20></td>
							</tr>

							<tr>
								<td><fmt:message key="label.bd.bookingdate" /></td>

								<td><input type="text" name="bookingdate"
									value="${param.book.getBookingDate()}" size=15 maxlength=20>
								</td>
							</tr>

							<tr>
								<td><fmt:message key="label.bd.priorityid" /></td>
								<td><input type="text" name="priorityid"
									value="${param['priorityID']}" size=15 maxlength=20></td>
							</tr>

							<tr>
								<td><fmt:message key="label.bd.reason" /></td>
								<td><input type="text" name="reason"
									value="${param['reason']}" size=15 maxlength=20></td>
							</tr>
							<tr>
							<td colspan="2">
							<center>
							<input type="submit" value="Submit" class="ButtonStyle">
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
										&nbsp;&nbsp;&nbsp;&nbsp;
							 <input type="reset" value="Reset" class="ButtonStyle" >
							</center>
							</td>
							</tr>

						</table>
						
					</center>
					
				</form>
			
		</div>

	</div>

	<div class="footer" style="align: center">Copyright@ Team3
		Erudites</div>


</body>
</html>